﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Models
{
    [Table("Sys_Person")]
    public class SysPerson:BaseModel
    {
       
        [Required]
        [StringLength(20)]
        public string Name { get; set; }
        public int OrgId { get; set; }
        [StringLength(20)]
        public string Phone { get; set; }
        [StringLength(50)]
        public string Photo { get; set; }
        [StringLength(20)]
        public string LoginName { get; set; }
        [StringLength(50)]
        public string LoginPwd { get; set; }
        public int State { get; set; }
        public int LoginState { get; set; }
        public bool IsDeleted { get; set ; }

        public virtual ICollection<SysRole> SysRoles { get; set; }
    }
}
